#!/bin/bash

cd $SOURCE_HOME

OSTYPE=`uname`
EXCLUDE='--exclude=.bin --exclude=bin --exclude=log --exclude=obj --exclude=dll --exclude=lua --exclude=*.db --exclude=*.a --exclude=*.o'

if [ "$OSTYPE" == "Linux" ]
then
	tar zcvf backupcode.tar.gz $EXCLUDE --exclude=win configure cppshell product library toolkit webapp
else
	tar zcvf backupcode.tar.gz $EXCLUDE configure cppshell product library toolkit webapp
fi

cd -